<?php
/*
		Template Name: Contact
*/
?>
<?php get_header(); ?>

	<section class="main">
		<nav class="main-nav">
			<ul>						
				<?php 
					$taxonomies = 'building-type';
					$args  = array('hide_empty'=>false);
					$terms = get_terms( $taxonomies, $args ) ;
					foreach($terms as $term){							
						if( $term->parent == 0 && get_tax_meta($term->term_id,'building_tax_show_home') == 1){
							?>
						<li <?php echo checkActiveMenuHome($term->term_id)?>><a href="<?php echo get_term_link($term,$taxonomies);?>"><?php echo $term->name;?></a></li>
						<li class="line-nav"></li>
					<?php
						}
					}
				?>
				<?php $pageid = 58 ;if(ICL_LANGUAGE_CODE == 'vi') $pageid = 76 ;?>
			   <li><a href="<?php echo get_page_link($pageid)?>">
					<?php echo get_page($pageid)->post_title; ?>
				</a></li>
			</ul>
		</nav>
    	<!-- sidebar -->
    	<?php get_sidebar()?>
        <!-- sidebar -->
        
        <!-- main content -->
        <section class="main-content">
        	<!-- discrumble-->
        	<section class="discrumble">
				<?php if(function_exists('bcn_display')){ bcn_display();}?>
			</section>            
            <!-- col main -->
            <section class="col-main">
            	<article class="contact">
                	<div class="contact-info">
                        <?php 
							if(have_posts()){
								while ( have_posts() ) { the_post();
									the_content();
								}
							}
						?>
                    </div>
                    
                    <div class="send-message">
                    	<h3 class="des-title">Send Message</h3>
                    	<?php echo do_shortcode('[contact-form-7 id="67" title="Contact form"]')?>
                    </div>
                </article>
            </section>
        </section>
        <!-- end main content -->
        <div class="clear"></div>
    </section>
    <!-- content -->

<?php get_footer(); ?>